package com.zhentao.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("goods_info")
public class GoodsInfo {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private int goodsId;
    /**
     * 商品ID
     */
    private int parentId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品描述
     */
    private String goodsDesc;

    /**
     * 原价
     */
    private float originalPrice;

    /**
     * 现价
     */
    private float currentPrice;

    /**
     * 库存
     */
    private int stock;

    /**
     * 销量
     */
    private int salesVolume;

    /**
     * 封面图URL
     */
    private String coverImg;

    /**
     * 详情图列表
     */
    private String detailImgs;

    /**
     * 状态(0下架,1上架)
     */
    private int status;

    /**
     * 创建时间
     */
    private Date createTime;
}